/**
 * 路由配置文件
 */
import {menuRoute} from './lib/function'
let routes=[];
sessionStorage.getItem('menu')?routes.push(menuRoute()):'';
export default [
	    {
			path:'/login',
			component:resolve => require(['./views/login.vue'], resolve),
			beforeEnter:(to,from,next)=>{
				if(sessionStorage.getItem('user')) next(false);
				else next();
            }
		},...routes
	]
